home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / dem225a.zip / INSTALL.BAT next >
DOS Batch File  |  1992-11-30  |  2KB  |  70 lines

  1. @echo off
  2. if .%1.==.. goto help
  3. if .%2.==.. goto help
  4. if not exist %1\MAIN.EXE goto help
  5. goto install
  6.  
  7. :help
  8. echo  
  9. echo To install the demo, type "INSTALL X: Y:" where X: is the source
  10. echo drive (drive with the demo disk) and Y: is the destination (hard) drive.
  11. echo For example, to install from a floppy disk in drive A to drive C, type:
  12. echo  
  13. echo   INSTALL A: C:
  14. echo  
  15. echo If you are installing this demo from a directory on your hard drive
  16. echo rather than from a floppy disk, specify the ENTIRE DIRECTORY NAME of
  17. echo the directory where these installation files are located. For example,
  18. echo if you unZipped a demo file obtained from a BBS into your "c:\telix\dl"
  19. echo directory, the command you'd want to type is:
  20. echo  
  21. echo   INSTALL C:\TELIX\DL C:
  22. echo  
  23. echo The install program will create a directory called \SLDEMO on the 
  24. echo destination drive, and install the demo there. Approximately 1 Megabyte
  25. echo of hard disk space is required.
  26. echo  
  27. goto exit
  28.  
  29. :install
  30. %2
  31. cd \
  32. mkdir %2\sldemo >nul
  33. if not exist %2\sldemo\nul goto help
  34. cd sldemo
  35. if exist bbs.exe goto reinstall
  36. echo  
  37. echo Installing Searchlight Demo. Please Wait.
  38. mkdir text >nul
  39. mkdir subs >nul
  40. mkdir menu >nul
  41. %1\main >nul
  42. cd text
  43. %1\text >nul
  44. cd ..\subs
  45. %1\subs >nul
  46. cd ..\menu
  47. %1\menu >nul
  48. cd ..
  49. if not exist bbs.ovr goto freespace
  50. if not exist strings.sys goto freespace
  51. if not exist subs\bulletins.msg goto freespace
  52. echo Searchlight Demo is installed. To begin, type 'DEMO'.
  53. echo  
  54. goto exit
  55.  
  56. :reinstall
  57. echo  
  58. echo You have already installed this demo. Please erase all the files
  59. echo from the \SLDEMO directory before installing this demo again.
  60. goto exit
  61.  
  62. :freespace
  63. echo  
  64. echo All the files needed for this demo were not installed. Please free
  65. echo some more space on your harddrive and install the demo again.
  66. goto exit
  67.  
  68. :exit
  69.  
  70.